import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import LoginInfo from "@/components/LoginInfo";
import AddUser from "../components/AddUser";
import AddScheduleTask from "../components/AddScheduleTask";
import HrInfo from "../components/HrInfo";
import SalSob from "../components/SalSob";
import EmpBasic from "../components/EmpBasic";
import ShowScheduledList from "../components/ShowScheduledList";
//import是进行组件的导入
Vue.use(Router)
const router = new Router({
  //隐藏掉浏览器中的#符号
  mode:"history",
  //路由
  routes:[
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      //浏览器要匹配的路径：请求路由
      path: '/loginInfo',
      name: 'LoginInfo',
      component: LoginInfo
    },
    {
      path: '/addUser',
      name: 'AddUser',
      component: AddUser
    },
    {
      path: '/addScheduleTask',
      name: 'AddScheduleTask',
      component: AddScheduleTask
    },
    {
      path: '/hrInfo',
      name: 'HrInfo',
      component: HrInfo
    },
    {
      path: '/salSob',
      name: 'SalSob',
      component: SalSob
    },
    {
      path: '/empBasic',
      name: 'EmpBasic',
      component: EmpBasic
    },
    {
      path: '/showScheduledList',
      name: 'ShowScheduledList',
      component: ShowScheduledList
    }
    ]
})
export default router
